//
//  HYFEssenceViewVc.m
//
//
//  Created by Bill on 14/6/16.
//  Copyright © 2016年 hyf. All rights reserved.
//

#import "HYFEssenceViewVc.h"






@implementation HYFEssenceViewVc


-(void)viewDidLoad{
    [super viewDidLoad];

    [self setNaViGaTionBar];


}


//给第一个TABBAR控制器添加按钮
-(void)setNaViGaTionBar{

    self.navigationItem.leftBarButtonItem=[UIBarButtonItem itemWithImage:[UIImage imageNamed:@"nav_item_game_icon"] highImage:[UIImage imageNamed:@"nav_item_game_click_icon"] target:self action:@selector(game)];
    
    self.navigationItem.rightBarButtonItem=[UIBarButtonItem itemWithImage:[UIImage imageNamed:@"navigationButtonRandom"] highImage:[UIImage imageNamed:@"navigationButtonRandomClick"] target:nil action:nil];
    
    self.navigationItem.titleView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];


}


-(void)game{

    NSLog(@"点击了游戏");

}
@end
